package com.dragon.mmochat.model.enumType;

public enum MmochatPlayerShopState {
	未营业(0), 营业中(1), 二手店出售中(2), 倒闭(3);

	int key;

	MmochatPlayerShopState(int key) {
		this.key = key;
	}

	public int getKey() {
		return key;
	}

	public static MmochatPlayerShopState get(int key) {
		for (MmochatPlayerShopState type : MmochatPlayerShopState.values()) {
			if (type.getKey() == key) {
				return type;
			}
		}
		return null;
	}
}
